﻿<UserControl x:Class="TestMatrix.Phone.JumpList.BugUserControl"
    xmlns:telerikCore="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Core"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Primitives"
    xmlns:telerikData="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Data"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480"
     Name="btncontrol" >
    
    <Grid x:Name="LayoutRoot" Margin="12, 0, 0, 0">
        <Grid.Resources>
            <DataTemplate x:Name="ItemTemplate">
                <!--<Border Padding="0, 8, 0, 8">-->
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="*"/>
                    </Grid.ColumnDefinitions>
                    <Grid Grid.Column="0">
                        <Border BorderThickness="1" HorizontalAlignment="Left" VerticalAlignment="Top" BorderBrush="Black" Width="96" Height="96">
                            <Image x:Name="bitmap" Source="{Binding Bitmap}" Grid.Row="0" Stretch="UniformToFill" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                        </Border>
                    </Grid>
                    <Grid Grid.Column="1" Margin="15, 0, 0, 0" VerticalAlignment="Center">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <TextBlock Name="txb_Type"  Text="{Binding TokenCounts}" FontSize="{StaticResource PhoneFontSizeLarge}" Grid.Row="0"/>
                        <StackPanel Orientation="Horizontal" Grid.Row="1">
                            <TextBlock Text="{Binding TokenCounts}" FontSize="17" VerticalAlignment="Center" Margin="0, 0, 8, 0" Foreground="{StaticResource PhoneSubtleBrush}" />
                            <Rectangle VerticalAlignment="Stretch" Width="1" Fill="{StaticResource PhoneSubtleBrush}" Margin="0, 3, 8, 3"/>
                            <TextBlock Text="{Binding Counts}" FontSize="17" VerticalAlignment="Center" Margin="0, 0, 8, 0" Foreground="{StaticResource PhoneSubtleBrush}"/>

                        </StackPanel>

                    </Grid>
                </Grid>
                <!--</Border>-->
            </DataTemplate>
        </Grid.Resources>
<!---->
        <!--<ScrollViewer VerticalScrollBarVisibility="Auto">
        <Grid >-->
        <telerikData:RadJumpList CacheMode="BitmapCache"
                                  ScrollViewer.VerticalScrollBarVisibility="Auto"
                                 x:Name="jumpList" 
                                 ItemTemplate="{StaticResource ItemTemplate}"
                                 Height="480"
                                 MouseLeftButtonUp="jumpList_MouseLeftButtonUp"
                                
                                 >
            <telerikData:RadJumpList.ListHeaderTemplate>
                <DataTemplate>
                    <Border BorderThickness="0, 3, 0, 3" BorderBrush="#0795B9" Background="{StaticResource PhoneChromeBrush}" Padding="0, 8, 0, 8" Margin="0,0,0,6">
                        <StackPanel Orientation="Horizontal" Margin="20, 0, 20, 0">
                            <Image VerticalAlignment="Center" Source="/Data/netflix-logo.png" Margin="-16, 0, 8, 0"/>
                            <TextBlock VerticalAlignment="Center" Text="Navigate To" FontWeight="Bold" FontSize="17"/>
                            <TextBlock VerticalAlignment="Center" Text="Items" Margin="8,0,0,0" FontWeight="Bold" FontSize="17" Foreground="{StaticResource PhoneAccentBrush}"/>
                        </StackPanel>
                    </Border>
                </DataTemplate>
            </telerikData:RadJumpList.ListHeaderTemplate>
        </telerikData:RadJumpList>
            <!--</Grid>
        </ScrollViewer>-->
    </Grid>
    
</UserControl>